﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class UIHeroLanguageKit :MonoBehaviour
    {
        public GameObject property;
        public GameObject level;
        public GameObject aptitude; //资质
        public GameObject aptitudeTop; //资质
        public GameObject attack;
        public GameObject life;
        public GameObject physicsDefend;
        public GameObject magicDefend;
        public GameObject breach;
        public GameObject breachBtn;
        public GameObject skill;
        public GameObject talent;
        public GameObject talentBtn;
        public GameObject levelUpBtn;
        public GameObject training; 
        public GameObject breachDes;//突破静态描述
        public GameObject heroDes;
        //public GameObject world;
        

        void Start()
        {
            //property.GetComponent<UILabel>().text = LanguageTool.GetText( 1000 );

            property.GetComponent<UILabel>().text    = TableTextBlo.GetText( "property" ); //"属性";
            level.GetComponent<UILabel>().text       = TableTextBlo.GetText( "level" );//"等级";
            aptitude.GetComponent<UILabel>().text    = TableTextBlo.GetText( "quality" );//"资质";
            aptitudeTop.GetComponent<UILabel>().text = TableTextBlo.GetText( "quality" );//"资质";
            attack.GetComponent<UILabel>().text      = TableTextBlo.GetText( "attack" );//"攻击";
            life.GetComponent<UILabel>().text        = TableTextBlo.GetText( "hp" );//"生命";
            physicsDefend.GetComponent<UILabel>().text = TableTextBlo.GetText( "pdef" );//"物理防御";
            magicDefend.GetComponent<UILabel>().text = TableTextBlo.GetText( "mdef" );//"魔法防御";
            breach.GetComponent<UILabel>().text      = TableTextBlo.GetText( "break_through" );//"突破";
            breachBtn.GetComponent<UILabel>().text   = TableTextBlo.GetText( "break_through" ); //"突破";
            skill.GetComponent<UILabel>().text       = TableTextBlo.GetText( "skill" ); //"技能";
            talent.GetComponent<UILabel>().text      = TableTextBlo.GetText( "tanlent" ); //"天赋";
            talentBtn.GetComponent<UILabel>().text   = TableTextBlo.GetText( "tanlent" ); //"天赋";
            levelUpBtn.GetComponent<UILabel>().text  = TableTextBlo.GetText( "levelup" ); //"升级";
            training.GetComponent<UILabel>().text    = TableTextBlo.GetText( "training" );// "训练";
            breachDes.GetComponent<UILabel>().text   = TableTextBlo.GetText( "break_through_des" );//"突破一些的描述";
            heroDes.GetComponent<UILabel>().text     = TableTextBlo.GetText( "hero_introduction" ); //"人物简介";
            //world.GetComponent<UILabel>().text       = TableTextBlo.GetText("world");//世界

            Destroy( this.GetComponent<UIHeroLanguageKit>() );
        }
    }
}